package com.at.dao;

import com.at.domain.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.persistence.Id;
import java.util.List;

/**
 * @author : code1997
 * @date :2020-10-2020/10/16 20:30
 */
@Repository
public interface CommentDao extends JpaRepository<Comment,Long> {

    List<Comment> findByBlogIdAndParentCommentIsNull(Long blogId, Sort sort);

}
